$(function(){
	messageList();
})

function messageList(){
	
	//var url = ajaxUrl + "/socketUser/countMessageNumber.do";
	var url = ajaxUrl + "/index/resCount.do";

	$.ajax({
		type    : 'post',
		url     : url,
		success : function(data){
			$("#messageCount").html(data.MsgCount);
			$("#dbCount").html(data.dbCount);
			$("#ybCount").html(data.ybCount);
			$("#TaskCount").html(data.TaskCount);
		},
		error   : function(error) {
			mini.alert(error);
		}
	})
	
}


function need(){
	var url = ajaxUrl + " ";
}


mini.parse();
function meessageList(){
	 var item = {
		        iconCls: "fa fa-desktop",
		        // id: formId,
		        text: "表单展示",
		        url: "../pages/message/Message.html"
		    };
		    parent.activeTab(item);//与父页面通信
}
function meessageApproval() {

			var item = {
				iconCls: "fa fa-desktop",
				// id: formId,
				text: "表单展示",
				url: "../pages/message/Messageapproval.html"
			};
			parent.activeTab(item);//与父页面通信
}
function msgList(){
	var item = {
	        iconCls: "fa fa-desktop",
	        // id: formId,
	        text: "表单展示",
	        url: "../pages/message/Message.html"
	    };
	    parent.activeTab(item);//与父页面通信
}

function myAgent() {


	var item = {
		text: "任务管理",
		url: "../pages/activiti/taskManagement.html"
	};
	// window.location.href="../pages/activiti/taskManagement.html";
	parent.activeTab(item);//与父页面通信
}

function myAlready(){
	var item = {
		text: "已办任务",
		url: "../pages/activiti/taskManagement.html"
	};
	// window.location.href="../pages/activiti/taskManagement.html";
	parent.activeTab(item);//与父页面通信
}


